package org.example.feign;

import org.example.domain.Prod;
import org.example.domain.Sku;
import org.example.feign.sentinel.BasketProdFeignSentinel;
import org.example.model.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "product-service",contextId = "BasketProdClient",fallback = BasketProdFeignSentinel.class)
public interface BasketProdFeign {

    @GetMapping("prod/prod/getSkuListBySkuIds")
    public Result<List<Sku>> getSkuListBySkuIds(@RequestParam List<Long> skuIds);

    @GetMapping("prod/prod/getProdListByShopIds")
    public Result<List<Prod>> getProdListByShopIds(@RequestParam List<Long> shopIds);

}
